home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Just Call Me Internet
/
Just Call Me Internet.iso
/
prog
/
atari
/
c
/
ssl_c1
/
raw_nl_c.lzh
/
DEFINES.H
next >
Wrap
Text File
|
1995-04-04
|
2KB
|
73 lines
/*
** Format of NODELIST.RDX (Raw-Index):
**
** The Indexfile starts with the "Index-Header":
** struct HEADER
** version - 0xMMmm (M=Major version, m=minor version)
** datetime - Time and date of creation (POSIX 1003.1)
** nodelists- Number of compiled nodelists in that file
** flag - 0=entries are unsorted (like in this demo)
** 1=entries are sorted; sort-priority: nodelist,zone,net,node,point
**
** Then one (or more) "Nodelists-Header" are following (the number of
** nodelists header is defined in "header.nodelists").
** struct NLHEADER
** type - 0=list is a nodelist; 1=list is a pointlist
** day - Daynumber of nodelist/pointlist
** network - Network (e.g. fidonet, atarinet, nest); case independant
** file - Full path to nodelist/pointlist
**
** Then all nodelist entries are following:
** struct ENTRY
** nodelist - Number of belonging NLHEADER (0 based)
** zone,net,
** node,point- Address
** status,
** flags - Status and Flags (see below)
** syscrc32 - CRC32 (sysop name,upcased characeters)
** offset - Offset in raw nodelist
*/
typedef struct HEADERtag
{ uword version;
ulong datetime;
uword nodelists;
uword flag;
} HEADER;
typedef struct NLHEADERtag
{ uword type;
uword day;
ubyte network[32];
ubyte file[256];
} NLHEADER;
typedef struct ENTRYtag
{ uword nodelist; /* 0-Based */
uword zone,net,node,point;
ubyte status,flags;
ulong sysopcrc32;
ulong offset;
} ENTRY;
#define FALSE 0
#define TRUE 1
/*
** Status
*/
#define UNKNOWN -1
#define NODE 0
#define ZONE 1
#define REGION 2
#define HOST 3
#define HUB 4
#define PVT 5
#define DOWN 6
#define HOLD 7
/*
** Flags
*/
#define F_CM (1U << 0)
#define F_MO (1U << 1)